<%@page import="com.ucap.bbs.util.ConstantUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>一把手网络服务大厅-中国睢宁门户网站群</title>
<meta name="keywords" content="一把手网络服务大厅,睢宁一把手网络服务大厅"></meta>
<meta name="description" content="中国睢宁一把手网络服务大厅,睢宁一把手网络服务大厅"></meta>
<link rel="stylesheet" href="css/ybscss.css"/>
<script type="text/javascript" src="js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="js/sngov.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript">
$(document).ready(function() { 
	var options = {
     beforeSubmit:  toSubmit,  // pre-submit callback
     success:       showResponse,  // post-submit callback
     dataType: 'json',
     //clearForm: true        // clear all form fields after successful submit
     //resetForm: true        // reset the form after successful submit
     timeout:   3000,
     error:	errorFun
 };
 $('#loginForm').ajaxForm(options);
}); 

function showResponse(responseText, statusText)  {
	changeImg();
	if(""!=responseText.msgs[0]){
		alert(responseText.msgs[0]);
	}
	
	if(responseText.isRedirect && ""!=responseText.redirect){
		window.location.href = responseText.redirect;
	}
}
function toSubmit(){
}
function errorFun(){
}
function changeImg(){
	$("#imgCode").attr("src",'<s:url action="vCode" namespace="/" />?r='+Math.random());
}
</script>
</head>

<body style=" background:url(images/dlbg.jpg) no-repeat center top;">
	<form id="loginForm" action='<s:url action="login" namespace="/" />' method="post">
    <div style=" width:1003px; margin:auto;">
   	  <div style=" height:39px; font-size:1px;"></div>
		<div class="zc1" style=" height:20px; line-height:20px;">
            <table width="100%" height="20" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
                <td width="65" style=" color:#666;"></td>
                <td width="67"><img src="images/zc.jpg"  /></td>
              </tr>
            </table>
		</div>
        <div style=" height:170px; font-size:1px;"></div>
        <div class="zc2" style=" height:250px; width:350px; margin:0px 0px 0px 175px;">
        	<table width="100%" height="200" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="49" style=" text-align:right; color:#787878; padding-right:10px;">用户名</td>
                <td colspan="3"><input name="loginName" type="text" class="zcsr1" /></td>
              </tr>
              <tr>
                <td style=" text-align:right; color:#787878;padding-right:10px;">密码</td>
                <td colspan="3"><input name="loginPwd" type="password" class="zcsr1" />&nbsp;&nbsp;忘记密码？</td>
              </tr>
              <tr>
                <td style=" text-align:right; color:#787878;padding-right:10px;">验证码</td>
                <td width="70"><input id="verifyCode" name="verifyCode" type="text" class="zcsr1" style=" width:73px; background:url(images/zcyzsr.jpg) no-repeat;" /></td>
                <td width="71"><img id="imgCode" src="<s:url action="vCode" namespace="/" />" onclick="changeImg()" /></td>
                <td width="136" style=" text-align:left;"><span style="cursor:pointer;color:#FF4B4B;" onclick="changeImg()">换一张</span></td>
              </tr>
              <tr>
                <td colspan="4"><input name="ljzc" type="submit" value="" style=" width:101px; height:35px; background:url(images/dl_an.jpg) no-repeat; border:0px; margin-left:80px;" /></td>
              </tr>
            </table>

        </div>
    </div>
</form>
</body>
</html>
